import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { FormsModule } from '@angular/forms';



import {BrowserAnimationsModule} from '@angular/platform-browser/animations';



import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ApiModule } from '~/api/api.module';
import { NgZorroAntdModule, NZ_I18N, zh_CN } from 'ng-zorro-antd';
import { NzIconModule } from 'ng-zorro-antd/icon';
import { NzLayoutModule } from 'ng-zorro-antd/layout';
import { NzTableModule } from 'ng-zorro-antd/table';
import { NzModalModule } from 'ng-zorro-antd/modal';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzInputModule } from 'ng-zorro-antd/input';
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
import { NzTreeModule } from 'ng-zorro-antd/tree';
import { NzTreeSelectModule } from 'ng-zorro-antd/tree-select';

import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';

import { LeftSiderComponent } from './components/left-sider/left-sider.component';
import { CategoryComponent } from './components/category/category.component';

registerLocaleData(zh);


@NgModule({
  declarations: [
    AppComponent,
    LeftSiderComponent,
    CategoryComponent

  ],
  entryComponents: [

  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    HttpClientModule,
    ApiModule.forRoot({ rootUrl: 'http://127.0.0.1:5000' }),
    BrowserAnimationsModule,
    FormsModule,
    NgZorroAntdModule,
    NzIconModule,
    NzLayoutModule,
    NzTableModule,
    NzModalModule,
    NzButtonModule,
    NzInputModule,
    NzInputNumberModule,
    NzDatePickerModule,
    NzTreeModule,
    NzTreeSelectModule
  ],
  providers: [
    { provide: NZ_I18N, useValue: zh_CN }
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
